package com.ruin.tech.ahri.service;

import com.ruin.tech.ahri.model.dto.Book;
import com.ruin.tech.ahri.model.dto.BookDTO;

import java.util.List;

public interface IBookService {
    
    /**
    * @description: 新增预约记录
    * @param: [book]
    * @return: void
    * @author: ruin
    * @date: 2019/12/26
    */
    public void add(Book book) throws Exception;
    
    /**
    * @description: 分页查询预约信息
    * @param: [bookDTO]
    * @return: java.util.List<com.ruin.tech.ahri.model.dto.Book>
    * @author: ruin
    * @date: 2019/12/26
    */
    public List<Book> findPage(BookDTO bookDTO) throws Exception;

    /**
     * @description: 删除预约信息
     * @param: [bookDTO]
     * @return:
     * @author: ruin
     * @date: 2019/12/26
     */
    public void del(BookDTO bookDTO) throws Exception;

    /**
     * @description: 编辑预约信息
     * @param: [book]
     * @return:
     * @author: ruin
     * @date: 2019/12/26
     */
    public void edit(Book book) throws Exception;
}
